import request from './request.js'
import requestOne from './requestOne.js'

const api = {}

// 登陆
api.login = (params) => request.globalRequest('/login', 'POST', params, false)
// 里程
api.lcb = (params) => request.globalRequest('/haike/lcb/list', 'GET', params)
//修改密码
api.xgmm = (params) => request.globalRequest('/system/user/profile/updatePwd', 'Put', params)
//用户首页
api.user = (params) => request.globalRequest('/haike/api/getSyUserInfo', 'GET', params)

//获取班组列表
api.team = (params) => request.globalRequest('/haike/api/getBzMapList', 'GET', params)

//获取考核项目列表
api.project = (params) => request.globalRequest('/haike/api/getKhxmMapList', 'GET', params)

//个人考核
api.assessment = (params) => request.globalRequest('/haike/api/getKhdfDetail', 'GET', params)


//审核通过
api.shtg = (params) => request.globalRequest('/haike/yhxx/yhxxUpdate_shtg','POST',params)
api.shtgsa = (params) => request.globalRequest('/haike/yhxx/yhxxUpdate_shtg1','POST',params)
//获取加分扣分详情
api.points = (params) => request.globalRequest('/haike/api/getPagedKhnrDetail', 'GET', params)

//个人季度考核得分
api.getKhdfDetail_jd = (params) => request.globalRequest('/haike/api/getKhdfDetail_jd', 'GET', params)

//个人月考核得分
api.getKhdfDetail = (params) => request.globalRequest('/haike/api/getKhdfDetail', 'GET', params)

//照片上传
api.upload = (params) => request.globalRequest('/ommon/upload', 'GET', params)

//隐患类型

api.hk_yhxx_yflx = (params) => request.globalRequest('/system/dict/data/type/hk_yhxx_yflx', 'GET', params)

//隐患级别
api.getYhdjMapList = (params) => request.globalRequest('/haike/yhxx/getYhdjMapList', 'GET', params)
//隐患提交
api.yh_save = (params) => request.globalRequest('/haike/yhxx/save', 'POST', params)

//处理通过
api.yh_clwc = (params) => request.globalRequest('/haike/yhxx/yhxxUpdate_clwc', 'POST', params)
//验证通过
api.yh_bzyz = (params) => request.globalRequest('/haike/yhxx/yhxxUpdate_bzyz', 'POST', params)
api.yh_sbsb = (params) => request.globalRequest('/haike/yhxx/yhxxUpdate_sbgs', 'POST', params)

//未遂事件提交
api.wx_save = (params) => request.globalRequest('/system/wssj/add', 'POST', params)

//签到
api.sign = (params) => requestOne.globalRequest('/api/index/', 'GET', params)

//期刊
api.periodical = (params) => request.globalRequest('/api/hkOtice/qk/list', 'GET', params)

// 班组排名
api.getBzpm = (params) => request.globalRequest('/haike/api/getBzpm', 'GET', params)

// 班组年总分
api.getBzndzf = (params) => request.globalRequest('/haike/api/getBzndzf', 'GET', params)

//个人年度总分

api.getGrndzf = (params) => request.globalRequest('/haike/api/getGrndzf', 'GET', params)

// 个人月度排名，个人月度分
api.getGrpm = (params) => request.globalRequest('/haike/api/getGrpm', 'GET', params)

// 培训列表
api.getGrpm = (params) => request.globalRequest('/haike/api/getGrpm', 'GET', params)

// 综分排名
api.Zfpm = (params) => request.globalRequest('/haike/api/pagedZfpm', 'GET', params)

//班族排名
api.Bzpm = (params) => request.globalRequest('/haike/api/pagedBzpm','Get',params)
// /haike/lcb/list
//培训考试
api.pxks = (params) => request.globalRequest('/haike/pxks/list', 'GET', params)
//  analysis   answer   beginTime  createBy  createTime endTime  id  optionA  optionB
//optionC optionD  optionE   params 

//查询期刊详情
api.qkxq = (params) => requestOne.globalRequest('/api/hkOtice/qk/', 'GET', params)
// noticeId

//查询期刊
api.cxqk = (params) => request.globalRequest('/api/hkOtice/qk/list', 'GET', params)
// pageNum   pageSize


//获取考试
api.ks = (params) => requestOne.globalRequest('/api/px/ks/getList/', 'GET', params)
//userName

//考试查询 
api.kscx = (params) => request.globalRequest('/haike/ksjl/list', 'GET', params)
//获得通告列表
api.tglist = (params) => request.globalRequest('/api/hkOtice/tg/tgList', 'GET', params)
//新闻  
api.notis = (params) => request.globalRequest('/haike/hkNotice/qkItem/lists', 'GET', params)

// pageNum   pageSize 
//获得通报信息
// 2020-12-27 费用 api.tgxx = (params) => request.globalRequest('/api/hkOtice/tb/list', 'GET', params)
api.tgxx = (params) => requestOne.globalRequest('/api/hkOtice/tg/', 'GET', params)
//tbld
//查询海科新闻详情
api.xwxq = (params) => requestOne.globalRequest('/api/hkOtice/xw/', 'GET', params)
//noticeld
//查询海科新闻列表
api.xwlb = (params) => request.globalRequest('/api/hkOtice/xw/list', 'GET', params)
// pageNum  pageSize

// 获取通报信息
api.tblist = (params) => request.globalRequest("/api/hkOtice/tb/list", 'GET', params)

// 获取通报信息
api.tbDetail = (params) => requestOne.globalRequest("/api/hkOtice/tb/", 'GET', params)

//签到
api.qd = (params) => request.globalRequest('/api/index/1', 'GET', params)
//userName
//签到视频
api.qdsp = (params) => request.globalRequest('/api/index/{{qdspId}}', 'GET', params)

//获取用户详情
api.yhxq = (params) => request.globalRequest('/getInfo', 'GET', params)
//userId

//隐患列表
api.yhs = (params) => request.globalRequest('/haike/yhxx/list', 'GET', params)
//未处理
api.yhwcl = (params) => request.globalRequest('/haike/yhxx/listwsh', 'GET', params)
//已处理
api.yhycl = (params) => request.globalRequest('/haike/yhxx/listycl', 'GET', params)
//验证
api.yhyz = (params) => request.globalRequest('/haike/yhxx/listyz', 'GET', params)

api.yh = (params) => request.globalRequest('/haike/yhxx/list02', 'GET', params)
//隐患提示
api.yhts = (params) => request.globalRequest('/haike/yhxx/tishi', 'GET', params)

//隐患详情
api.yhxqx = (params) => request.globalRequest('/haike/yhxx/', 'GET', params)

// 获取所有培训
api.list_px = (params) => request.globalRequest('/pxks/px/list', 'GET', params)

// 获取一个训
api.get_px = (params) => requestOne.globalRequest('/pxks/px/', 'GET', params)

// 上传心得
api.upload_px_xinde = (params) => request.globalRequest('/api/px/px/ksxd', 'POST', params)

// 提交考试
api.sumitKs = (params) => request.globalRequest('/api/px/ks/sumitKs', 'POST', params)

api.editProfile = (params) => request.globalRequest('/system/user/profile', 'PUT', params)

api.getUserList = (params) => request.globalRequest('/haike/api/getUserList', 'GET', params)

// 1、GET     获取个人上报的隐患信息
api.listGr = (params) => request.globalRequest('/haike/yhxx/listGr', 'GET', params);

// 班组长获取考试情况
api.bzGetUserKs = (params) => request.globalRequest("/api/px/ks/bzGetUserKs", 'GET', params)

// 学时统计
api.studyStatistics = (params) => request.globalRequest("/api/px/ks/tj", 'GET', params)

//未考试统计
api.tj = (params) => request.globalRequest("/api/px/wks/tjName", 'GET', params)

api.yhxxUpdate_shth = (params) => request.globalRequest('/haike/yhxx/yhxxUpdate_shth', 'POST', params)


export default api
